﻿@model ClientApp.Models.LogOnModel

@{
    ViewBag.Title = "Log On";
}

@Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")

@using (Html.BeginForm("LogOn", "Admission"))
{
    <div>
        <fieldset>
            <legend>Please enter your login and password.</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.UserName)
            </div>

            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password)
            </div>

            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div>
                <div style="text-align: center; margin: 50px 0;">
                    <input type="submit" value="Log On" />
                </div>
            </div>
        </fieldset>
    </div>
}
